/*
 * @Author: g05047
 * @Date: 2022-02-17 20:14:57
 * @LastEditors: g05047
 * @LastEditTime: 2022-05-16 10:00:43
 * @Description: file content
 */
import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env;

export default {

  //获取单位列表
  getUnitList: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findUnitColdChainCompany`, data, { loading: true }),

  //获取采样列表
  getCollectionList: data => request.post(`${VUE_APP_ADMIN_API}/nucleic/acid/sampling/findNucleicAcidSampling`, data, { loading: true }),

  //获取人员列表
  getPersonList: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findUnitColdChainPersonnel`, data, { loading: true }),

  //区域统计
  getAreaStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegionalStatistics`, data, { loading: true }),

  //单位业态统计
  getBodyindustryStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findBodyindustryStatistics`, data, { loading: true }),

  //注册单位统计
  getUnitStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegisteredUnitStatistics`, data, { loading: true }),

  //注册单位导出
  exportRegisterUnit: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportRegisteredUnitStatistics`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //核酸采集填报日期统计
  getCollectionDateStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findNucleicAcidCollectionDateStatistics`, data, { loading: true }),

  //导出单位信息
  exportUnitList: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportUnitColdChainCompany`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //导出人员信息
  exportPersonList: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportUnitColdChainPersonnel`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //导出核酸信息
  exportCollectionList: data => request.get(`${VUE_APP_ADMIN_API}/nucleic/acid/sampling/exportUnitColdChainCompany`, { params: data, isAuth: true, loading: true, responseType: "blob" }),



  saveunitColdChainLabel: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/label/saveunitColdChainLabel`, data, { loading: true }),

  saveUnitDeleteById: data => request.get(`${VUE_APP_ADMIN_API}/supervise/unit/type/deleteById`, data, { loading: true }),

  //获取冷链短信提醒记录
  getColdLinkMessageRemindRecord: data => request.post(`${VUE_APP_ADMIN_API}/sms/cold/chain/notification/findSmsNotification`, data, { loading: true })
}
// ----------------------------------------冷链单位统计接口-------------------------------------------
// 单位业态统计
export let findBodyindustryNewStatistics = data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findBodyindustryNewStatistics`, data);
// 注册单位统计
export let findRegisteredUnitNewStatistics = data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegisteredUnitNewStatistics`, data);
// 日期统计
export let findNucleicAcidCollectionDateNewStatistics = data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findNucleicAcidCollectionDateNewStatistics`, data);
// 区域统计
export let findRegionalStatisticsNew = data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegionalStatisticsNew`, data);

// 单位标签统计
export let findCategoryNewStatistics = data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findCategoryNewStatistics`, data);


// 导出注册单位统计
export let exportRegisteredUnitNewStatistics = data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportRegisteredUnitNewStatistics`, { params: data, isAuth: true, loading: true, responseType: "blob" });

// 导出单位标签
export let exportCategoryNewStatistics = data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportCategoryNewStatistics`, { params: data, isAuth: true, loading: true, responseType: "blob" });




export let exportGroupMealPilot = data => request.get(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/exportGroupMealPilot`, { params: data, isAuth: true, loading: true, responseType: "blob" });